import request from '@/utils/request'
const _urlMenu = '/ucenter/api/menu'
// 获取菜单树列表

// 获取左侧用户菜单
export function getMenuList(data) {
  return request({
    url: `${_urlMenu}/currentUser/trees`,
    method: 'get',
    params: data
  })
}

// 点击业务模块获取菜单
export function getMenuListByModuleId(id) {
  return request({
    url: `${_urlMenu}/${id}/currentUser/trees`,
    method: 'get'
  })
}
